﻿namespace WMS6.Web.TaskMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="TaskManagerUserDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough]
    public class TaskManagerUserDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AllowCaseField;
        [OptionalField]
        private string AllowIpsField;
        [OptionalField]
        private string AllowPalletField;
        [OptionalField]
        private string AllowPieceField;
        [OptionalField]
        private string AreaIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DescrField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string LineIDField;
        [OptionalField]
        private string PermissionField;
        [OptionalField]
        private string PermissionTypeField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string UserIDField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string AllowCase
        {
            get
            {
                return this.AllowCaseField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllowCaseField, value))
                {
                    this.AllowCaseField = value;
                    this.RaisePropertyChanged("AllowCase");
                }
            }
        }

        [DataMember]
        public string AllowIps
        {
            get
            {
                return this.AllowIpsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllowIpsField, value))
                {
                    this.AllowIpsField = value;
                    this.RaisePropertyChanged("AllowIps");
                }
            }
        }

        [DataMember]
        public string AllowPallet
        {
            get
            {
                return this.AllowPalletField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllowPalletField, value))
                {
                    this.AllowPalletField = value;
                    this.RaisePropertyChanged("AllowPallet");
                }
            }
        }

        [DataMember]
        public string AllowPiece
        {
            get
            {
                return this.AllowPieceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllowPieceField, value))
                {
                    this.AllowPieceField = value;
                    this.RaisePropertyChanged("AllowPiece");
                }
            }
        }

        [DataMember]
        public string AreaID
        {
            get
            {
                return this.AreaIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AreaIDField, value))
                {
                    this.AreaIDField = value;
                    this.RaisePropertyChanged("AreaID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    this.RaisePropertyChanged("Descr");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LineIDField, value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string Permission
        {
            get
            {
                return this.PermissionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PermissionField, value))
                {
                    this.PermissionField = value;
                    this.RaisePropertyChanged("Permission");
                }
            }
        }

        [DataMember]
        public string PermissionType
        {
            get
            {
                return this.PermissionTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PermissionTypeField, value))
                {
                    this.PermissionTypeField = value;
                    this.RaisePropertyChanged("PermissionType");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string UserID
        {
            get
            {
                return this.UserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UserIDField, value))
                {
                    this.UserIDField = value;
                    this.RaisePropertyChanged("UserID");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

